//
//  DDHeadLineCell.m
//  NetEaseNews
//
//  Created by dqw on 15/7/24.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "DDHeadLineCell.h"
#import <UIImageView+AFNetworking.h>

@interface DDHeadLineCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UIPageControl *pageCon;

@end

@implementation DDHeadLineCell

- (void)setHeadline:(DDHeadLine *)headline
{
    _headline = headline;
    self.titleLab.text = headline.title;
    [self.imgView setImageWithURL:[NSURL URLWithString:headline.imgsrc]];
    self.pageCon.currentPage = self.tag;
}
@end
